package com.baiku.sanhos.mapper;

import com.baiku.sanhos.pojo.entity.User;
import com.baiku.sanhos.pojo.vo.DoctorIndexVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 用于查询总表User的信息
 */
@Repository
public interface UserPerMapper extends BaseMapper<User> {
        User  loadByUsername(String username);
        User loadByPhoneFlag(Long phone, Integer flag);
        List<User> loadByPhone(String phone);


        void insertUserPer(DoctorIndexVo doctorIndexVo);

        void deleteByIdPer(String username);

    void updatePassword(String username, String password1);

        void updatePhone(String username, String newPhone);
}
